﻿namespace OboutInc.ImageZoom.Encryption
{
    using System;
    using System.Text;

    public class Encryption
    {
        internal static string Base64Decode(string sBase64String)
        {
            byte[] bytes = Convert.FromBase64String(sBase64String);
            return Encoding.UTF8.GetString(bytes);
        }

        internal static string Base64Encode(string sString)
        {
            return Convert.ToBase64String(Encoding.UTF8.GetBytes(sString));
        }
    }
}

